//
//  SISSHouseResourceModel.h
//  SISSAPP
//
//  Created by 优房网 on 2017/3/24.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SISSHouseResourceTagModel.h"
#import "SISSPropertyFileModel.h"

@interface SISSHouseResourceModel : NSObject

/// read
@property (assign, nonatomic) NSInteger read;
/// 房源id
@property (copy, nonatomic) NSString *ID;
@property (copy, nonatomic) NSString *ahrId;
/// 业主id
@property (copy, nonatomic) NSString *asId;
/// 业主id
@property (copy, nonatomic) NSString *asoId;
/// 房源类型 1线上房源  2线下房源
@property (assign, nonatomic) NSInteger houseresType;
/// 房源图片
@property (copy, nonatomic) NSArray *houseImage;
/// 小区
@property (copy, nonatomic) NSString *neighbourhood;
/// 楼栋
@property (copy, nonatomic) NSString *bnum;
/// 房号
@property (copy, nonatomic) NSString *dnum;
/// 房号id
@property (copy, nonatomic) NSString *landId;
/// 区域
@property (copy, nonatomic) NSString *region;
/// 详细区域
@property (copy, nonatomic) NSString *regionDetail;
/// 楼层
@property (assign, nonatomic) NSInteger floor;
/// 总楼层
@property (assign, nonatomic) NSInteger totalFloor;
/// 房屋类型 一房 二房
@property (copy, nonatomic) NSString *houseType;
/// 建筑年代
@property (copy, nonatomic) NSString *year;
/// 建筑面积
@property (copy, nonatomic) NSString *area;
/// 套内面积
@property (copy, nonatomic) NSString *insideArea;
/// 价格
@property (copy, nonatomic) NSString *price;
/// 平均价格
@property (copy, nonatomic) NSString *averagePrice;
/// 装修程度
@property (copy, nonatomic) NSString *decoration;
/// 朝向
@property (copy, nonatomic) NSString *direction;
/// 产权状态
@property (copy, nonatomic) NSString *propertyState;
/// 发布时间
@property (copy, nonatomic) NSString *insertTime;
/// 房源信息编码
@property (copy, nonatomic) NSString *houseInfoNo;
/// 房产证号
@property (copy, nonatomic) NSString *certNo;
/// 合同编码
@property (copy, nonatomic) NSString *contractNo;
/// 标签模型数组
@property (strong, nonatomic) NSArray<SISSHouseResourceTagModel *> *listTag;
/// 产权模型数组
@property (strong, nonatomic) NSArray<SISSPropertyFileModel *> *lstOfFile;
/// 房屋优劣势
@property (copy, nonatomic) NSString *otherdesc;
/// 卖家姓名
@property (copy, nonatomic) NSString *name;
/// 卖家手机号码
@property (copy, nonatomic) NSString *phoneNumber;

/// 选中状态
@property (assign, nonatomic) BOOL isSelected;

/// 确认状态 0:待确认 1:已确认 2:已拒绝
@property (assign, nonatomic) NSInteger business_status;

/// isMain
@property (assign, nonatomic) NSInteger isMain;
/// ahbpId
@property (copy, nonatomic) NSString *ahbpId;
/// entrustCount
@property (assign, nonatomic) NSInteger entrustCount;
/// entrustType
@property (assign, nonatomic) NSInteger entrustType;
/// progress
@property (assign, nonatomic) NSInteger progress;
/// visibleCount
@property (assign, nonatomic) NSInteger visibleCount;
/// visibleRange
@property (assign, nonatomic) NSInteger visibleRange;
/// count
@property (assign, nonatomic) NSInteger count;

/// 是否交易 1：已交易
@property (assign, nonatomic) NSInteger traded;
/// 是否在交易 1：交易中
@property (assign, nonatomic) NSInteger trading;


@end

/*
 {
	insertTime = 2017-04-09 15:13:06;
	houseresType = 1;
	totalFloor = 10;
	ahbpId = 3339614814077952;
	listTag = (
	{
	id = <null>;
	ahrId = <null>;
	tag = 地铁口物业;
	color = 1;
 }
 ,
	{
	id = <null>;
	ahrId = <null>;
	tag = 学位房;
	color = 5;
 }
 ,
 )
 ;
	lstOfFile = (
 )
 ;
	averagePrice = 6.5;
	region = 福田;
	visibleCount = 0;
	otherdesc = 没有;
	houseType = 一房;
	year = 1997;
	read = 0;
	asId = 1;
	progress = 1;
	id = 3;
	token = <null>;
	contractNo = 456;
	regionDetail = 华强北;
	decoration = 普装;
	visibleRange = 0;
	neighbourhood = 蓝湾半岛3;
	propertyState = 个人产权;
	entrustCount = <null>;
	isMain = 0;
	houseInfoNo = 123;
	userName = <null>;
	area = 90;
	price = 700;
	direction = 南;
	entrustType = 1;
	floor = 2;
 }*/

/*
 {
 "userName": null,
 "token": null,
 "read": 1,
 "ahbpId": null,
 "entrustCount": null,
 "entrustType": null,
 "progress": null,
 "isMain": 0,
 "id": 1,
 "asId": 1,
 "houseInfoNo": "123",
 "contractNo": "456",
 "neighbourhood": "美丽花园1",
 "region": "福田",
 "regionDetail": "华强北",
 "floor": 11,
 "totalFloor": 9,
 "houseType": "一房",
 "year": 1997,
 "area": 90,
 "price": 300,
 "averagePrice": 6.98,
 "decoration": "精装",
 "direction": "朝南",
 "propertyState": "个人产权",
 "insertTime": "2017-02-27 17:13:41",
 "listTag": [
 {
 "id": null,
 "ahrId": null,
 "tag": "南北通透"
 },
 {
 "id": null,
 "ahrId": null,
 "tag": "红本在手"
 }
 ],
 "lstOfFile": [
 {
 "id": null,
 "ahrId": null,
 "propertyPic": "https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1488774828547&di=7fb64020da95a0614ee08345eaddd748&imgtype=0&src=http%3A%2F%2Fimg3.jc001.cn%2Fimg%2F001%2F1%2F1602%2F1656c81e8c5a3b0_s.jpg",
 "type": null,
 "remark": null,
 "deleted": null,
 "status": null,
 "insertSaId": null,
 "insertTime": null,
 "updateSaId": null,
 "updateTime": null,
 "ip": null
 },
 {
 "id": null,
 "ahrId": null,
 "propertyPic": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1489369674&di=692591edc85f188e9273a0b06adcda05&imgtype=jpg&er=1&src=http%3A%2F%2Fs9.sinaimg.cn%2Fmiddle%2F5e669d86xaf72ff1167c8%26amp%3B690",
 "type": null,
 "remark": null,
 "deleted": null,
 "status": null,
 "insertSaId": null,
 "insertTime": null,
 "updateSaId": null,
 "updateTime": null,
 "ip": null
 }
 ]
 }
 
 {
    "userName": null,
    "token": null,
    "visibleCount": 0,
    "visibleRange": 0,
    "count": 0,
    "read": 0,
    "ahbpId": null,
    "entrustCount": null,
    "entrustType": null,
    "progress": null,
    "isMain": 0,
    "id": 6,
    "asId": 1,
    "houseInfoNo": "U172122751226",
    "contractNo": "456",
    "neighbourhood": "皇都广场",
    "region": "福田区",
    "regionDetail": "园岭",
    "floor": 5,
    "totalFloor": 17,
    "houseType": "二房",
    "year": 1997,
    "area": 61.87,
    "price": 172,
    "averagePrice": 2.78,
    "decoration": "精装",
    "direction": "朝南",
    "propertyState": "独有",
    "insertTime": "2017-04-07 15:13:06",
    "houseresType": 1,
    "otherdesc": "满两年，费用少，有钥匙看房",
    "phoneNumber": null,
    "name": null,
    "listTag": [
         {
         "id": null,
         "ahrId": null,
         "tag": "满二年",
         "color": 3
         },
         {
         "id": null,
         "ahrId": null,
         "tag": "地铁口物业",
         "color": 4
         }
        ],
    "lstOfFile": []
 }
 */
